// 参数ts类型
// 登录接口
export interface loginForm {
  username: string;
  password: string;
}

// 登录接口返回数据
interface dataType {
  token?: string;
  message?: string;
}
export interface loginResponseData {
  code: number;
  data: dataType;
}

// 服务器返回用户信息
interface userInfoType {
  userId: number;
  avatar: string;
  username: string;
  password: string;
  desc: string;
  roles: string[];
  buttons: string[];
  routes: string[];
  token: string;
}
interface user {
  checkUser: userInfoType;
}
export interface userInfoResponseData {
  code: number;
  data: user;
}
